package hy.clone;

public class Stu implements Cloneable{
    int age;
    Teacher t;




//    void a()throws Exception{
//        super.clone();
//    }


    @Override
    protected Object clone() throws CloneNotSupportedException {
        Stu s = (Stu) super.clone();
        s.t = (Teacher) t.clone();
        return s;
    }
}
